package demo.linkedhashset;

import java.util.LinkedHashSet;

/**
 * Version: 1.1
 * Author: TangJun
 * Date: 2024-07-22
 */
public class Main {
    public static void main(String[] args) {
        LinkedHashSet set = new LinkedHashSet();

        set.add(new Car("小红", 100));
        set.add(new Car("小绿", 100));
        set.add(new Car("小红", 200));
        set.add(new Car("小红", 100));

        for (Object o : set) {
            System.out.println(o);
        }
    }
}
